package a.f.l.a;

import a.c.ab;
import a.c.bb;
import a.c.d;
import a.c.e;
import a.c.x;
import a.c.z;
import a.d.p;
import a.d.t;
import a.d.v;

import java.awt.*;
import java.awt.geom.AffineTransform;
import java.awt.geom.Point2D;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.HashMap;

class q
{
  private static final double a = 1.0E-006D;
  private static final double b = Math.sqrt(2.0D);
  private static final int c = 1;
  private static final int d = 10;
  private static final int e = 100;
  private static final int f = 100000;
  private static final Object g = "y.layout.router.polyline.Polyliner.MIN_EDGE_LENGTH_DPKEY";
  private static final Object h = "y.layout.router.polyline.Polyliner.EDGE_WEIGHT_DPKEY";
  private double i;
  private double j;
  private qb k;
  
  public double a()
  {
    return this.i;
  }
  
  public void a(double paramDouble)
  {
    this.i = paramDouble;
  }
  
  public double c()
  {
    return this.j;
  }
  
  public void b(double paramDouble)
  {
    this.j = paramDouble;
  }
  
  public void a(ab paramab, lc paramlc, qb paramqb)
  {
    boolean bool = sb.e;
    int n = sb.d;
    this.k = paramqb;
    a.f.o localo = paramqb.a();
    a.c.n localn = a.i.db.b();
    z localz1 = new z();
    z localz2 = new z();
    a.c.m localm = paramab.l();
    label57:
    if (localm.e()) {}
    d locald;
    Object localObject1;
    Object localObject2;
    Object localObject3;
    label184:
    while (bool)
    {
      locald = localm.a();
      localObject1 = paramlc.a(locald);
      if (n != 0) {
        break label503;
      }
      if (localObject1 != null)
      {
        localObject2 = new c_((n)localObject1);
        localn.a(locald, localObject2);
        localObject3 = ((c_)localObject2).a();
        int m = 0;
        do
        {
          if (m >= localObject3.length) {
            break label184;
          }
          if (n != 0) {
            break;
          }
          if (localObject3[m].k())
          {
            localz1.add(localObject3[m]);
            if (bool) {
              continue;
            }
            if (n == 0) {}
          }
          else
          {
            localz2.add(localObject3[m]);
          }
          m++;
        } while (n == 0);
      }
      localm.f();
      if (bool) {
        break label57;
      }
      if (n == 0) {
        break;
      }
    }
    localm = localo.w();
    label220:
    if (localm.e()) {}
    label411:
    label413:
    label427:
    label441:
    do
    {
      locald = localm.a();
      if (n != 0) {
        break label503;
      }
      if (localn.get(locald) == null)
      {
        if (bool) {
          break label441;
        }
        if (a.b(locald, localo))
        {
          localObject1 = localo.n(locald);
          localObject2 = null;
          localObject3 = ((a.d.y)localObject1).l();
          do
          {
            if (!((v)localObject3).e()) {
              break label427;
            }
            a.d.n localn1 = ((v)localObject3).a();
            if (n != 0) {
              break;
            }
            if (!localn1.c())
            {
              if (bool) {
                continue;
              }
              if (!localn1.b()) {}
            }
            else
            {
              if (!bool) {
                if (localObject2 != null)
                {
                  if (bool) {
                    break label413;
                  }
                  if (((a.d.n)localObject2).b() != localn1.b())
                  {
                    e_ locale_ = new e_((a.d.n)localObject2, localn1, locald);
                    if (!bool) {
                      if (locale_.k())
                      {
                        localz1.add(locale_);
                        if ((!bool) && (n == 0)) {
                          break label411;
                        }
                      }
                    }
                    localz2.add(locale_);
                  }
                }
              }
              localObject2 = localn1;
            }
            ((v)localObject3).f();
          } while (n == 0);
        }
      }
      localm.f();
      if (bool) {
        break label220;
      }
      if (n == 0) {
        break;
      }
      a(localo, localz1, -45);
      a(localo, localz2, 45);
    } while (bool);
    localm = paramab.l();
    label503:
    do
    {
      if (!localm.e()) {
        break;
      }
      locald = localm.a();
      localObject1 = (c_)localn.get(locald);
      if (n != 0) {
        return;
      }
      if (localObject1 != null) {
        localo.b(locald, ((c_)localObject1).b());
      }
      localm.f();
    } while (n == 0);
    if (!bool) {
      this.k = null;
    }
  }
  
  private void a(a.f.o paramo, z paramz, int paramInt)
  {
    boolean bool = sb.e;
    int n = sb.d;
    if (((!bool) && (paramz == null)) || (paramz.isEmpty())) {
      return;
    }
    Rectangle localRectangle = paramo.d();
    AffineTransform localAffineTransform = new AffineTransform();
    double d1 = localRectangle.x + localRectangle.width / 2;
    double d2 = localRectangle.y + localRectangle.height / 2;
    localAffineTransform.translate(d1, d2);
    localAffineTransform.rotate(a.d.k.a(paramInt));
    localAffineTransform.translate(-d1, -d2);
    a.c.q localq = a(paramz, localAffineTransform);
    x localx = a.i.db.a();
    a.c.n localn1 = (a.c.n)localq.c(g);
    a.c.n localn2 = (a.c.n)localq.c(h);
    a.a.db.a(localq, localx, localn2, localn1);
    a.c.y localy = paramz.h();
    do
    {
      if (!localy.e()) {
        break;
      }
      d_ locald_ = (d_)localy.j();
      if (!bool)
      {
        if (!locald_.j())
        {
          e locale1 = locald_.j;
          e locale2 = locald_.i;
          int m = Math.abs(localx.getInt(locale1) - localx.getInt(locale2));
          double d3 = m * b;
          locald_.a(d3);
        }
        localy.f();
      }
    } while (n == 0);
  }
  
  private a.c.q a(z paramz, AffineTransform paramAffineTransform)
  {
    boolean bool = sb.e;
    int i1 = sb.d;
    a.c.q localq = new a.c.q();
    a.c.n localn1 = a.i.db.b();
    localq.a(g, localn1);
    a.c.n localn2 = a.i.db.b();
    localq.a(h, localn2);
    bb localbb = new bb();
    x localx1 = a.i.db.a();
    HashMap localHashMap = new HashMap();
    Point2D.Double localDouble = new Point2D.Double();
    x localx2 = a.i.db.a();
    a.c.y localy = paramz.h();
    if (localy.e()) {}
    label232:
    label753:
    do
    {
      d_ locald_ = (d_)localy.j();
      double d1 = locald_.d();
      double d2 = locald_.e();
      localDouble.setLocation(d1, d2);
      paramAffineTransform.transform(localDouble, localDouble);
      if ((!bool) && (i1 != 0)) {
        return localq;
      }
      Integer localInteger1;
      if ((bool) || ((locald_.b() == 1) || (locald_.b() == 3)))
      {
        localInteger1 = new Integer((int)Math.floor(localDouble.getX()));
        if (bool) {
          break label232;
        }
        if (i1 == 0) {}
      }
      else
      {
        localInteger1 = new Integer((int)Math.ceil(localDouble.getX()));
      }
      if (!bool) {
        if (!locald_.j())
        {
          e locale1 = (e)localHashMap.get(localInteger1);
          if (!bool)
          {
            if (locale1 == null) {
              locale1 = localq.i();
            }
          }
          else
          {
            localHashMap.put(localInteger1, locale1);
            localx1.a(locale1, localInteger1.intValue());
            localbb.add(locale1);
          }
          locald_.i = locale1;
        }
      }
      double d3 = locald_.f();
      double d4 = locald_.g();
      localDouble.setLocation((d1 + d3) / 2.0D, (d2 + d4) / 2.0D);
      paramAffineTransform.transform(localDouble, localDouble);
      if ((bool) || ((locald_.b() == 1) || (locald_.b() == 3)))
      {
        if (bool) {
          break label415;
        }
        localInteger2 = new Integer((int)Math.ceil(localDouble.getX()));
        if (i1 == 0) {
          break label417;
        }
      }
      Integer localInteger2 = new Integer((int)Math.floor(localDouble.getX()));
      e locale2 = (e)localHashMap.get(localInteger2);
      if (!bool) {
        if (locale2 == null)
        {
          locale2 = localq.i();
          localHashMap.put(localInteger2, locale2);
          localx1.a(locale2, localInteger2.intValue());
          localbb.add(locale2);
        }
      }
      e locale3 = localq.i();
      localx2.a(locale3, localInteger2.intValue());
      locald_.j = locale3;
      Object localObject;
      if (!bool) {
        if (locald_.j())
        {
          localObject = localq.a(locale2, locale3);
          localn2.a(localObject, 100000);
          if (bool) {
            break label785;
          }
          if (i1 == 0) {
            break label776;
          }
        }
      }
      if (localInteger1.intValue() - localInteger2.intValue() == 0)
      {
        localObject = localq.a(locald_.i, locale3);
        localn2.a(localObject, 100000);
        if (bool) {
          break label785;
        }
        if (i1 == 0) {}
      }
      else
      {
        localObject = localq.i();
        int m = localInteger1.intValue() - localInteger2.intValue();
        d locald1;
        d locald2;
        if (!bool)
        {
          if (m > 0)
          {
            localq.a(locale3, locald_.i);
            localq.a(locale2, (e)localObject);
            locald1 = localq.a((e)localObject, locale3);
            locald2 = localq.a((e)localObject, locald_.i);
            if (bool) {
              break label753;
            }
            if (i1 == 0) {}
          }
          else
          {
            localq.a(locald_.i, locale3);
            localq.a((e)localObject, locale2);
          }
        }
        else
        {
          locald1 = localq.a(locale3, (e)localObject);
          locald2 = localq.a(locald_.i, (e)localObject);
        }
        localn2.a(locald1, 1);
        int n = Math.min((int)Math.ceil(this.j / 2.0D), Math.abs(m));
        localn1.a(locald2, n);
        localn2.a(locald2, 1);
      }
      localy.f();
      if (i1 == 0) {
        break;
      }
      a(localq, localbb, localx1);
    } while (bool);
    label415:
    label417:
    a(paramz, localq, localn1, localn2, localx2);
    label776:
    label785:
    return localq;
  }
  
  private void a(a.c.q paramq, bb parambb, x paramx)
  {
    boolean bool = sb.e;
    int i2 = sb.d;
    parambb.a(new Comparator()
    {
      private final x val$coordinateNode2Coordinate;
      
      public int compare(Object paramAnonymousObject1, Object paramAnonymousObject2)
      {
        boolean bool = sb.e;
        int i = this.val$coordinateNode2Coordinate.getInt(paramAnonymousObject1);
        int j = this.val$coordinateNode2Coordinate.getInt(paramAnonymousObject2);
        if (!bool)
        {
          if (i < j) {
            return -1;
          }
          if (bool) {}
        }
        else if (i > j)
        {
          return 1;
        }
        return 0;
      }
    });
    a.c.n localn1 = (a.c.n)paramq.c(g);
    a.c.n localn2 = (a.c.n)paramq.c(h);
    Object localObject = null;
    a.c.w localw = parambb.l();
    do
    {
      if (!localw.e()) {
        break;
      }
      e locale = localw.d();
      if (!bool) {
        if (localObject != null)
        {
          d locald = paramq.a((e)localObject, locale);
          localn2.a(locald, 100000);
          int m = paramx.getInt(locale);
          int n = paramx.getInt(localObject);
          int i1 = m - n;
          localn1.a(locald, i1);
        }
      }
      localObject = locale;
      localw.f();
    } while (i2 == 0);
  }
  
  private void a(z paramz, a.c.q paramq, a.c.n paramn1, a.c.n paramn2, a.c.k paramk)
  {
    a.d.m.a(paramz, new m.g_()
    {
      private final a.c.q val$segmentConstraintGraph;
      private final a.c.n val$edge2MinLength;
      private final a.c.n val$edge2Weight;
      private final a.c.k val$segmentRep2TransformedMaxPointX;
      
      public void a(Object paramAnonymousObject1, Object paramAnonymousObject2)
      {
        boolean bool = sb.e;
        int m = sb.d;
        q.d_ locald_1 = (q.d_)paramAnonymousObject1;
        q.d_ locald_2 = (q.d_)paramAnonymousObject2;
        if (!bool) {
          if (locald_1.j())
          {
            if (bool) {
              break label48;
            }
            if (locald_2.j()) {
              return;
            }
          }
        }
        label48:
        e locale1 = locald_1.j;
        e locale2 = locald_2.j;
        if (!bool) {
          if (!locald_1.j()) {
            if (bool) {
              break label87;
            }
          }
        }
        label87:
        int i = locald_2.j() ? 10 : 100;
        e locale3;
        d locald1;
        d locald2;
        if (((bool) || (locald_1.i() != null)) && (locald_1.i() == locald_2.i()))
        {
          locale3 = this.val$segmentConstraintGraph.i();
          locald1 = this.val$segmentConstraintGraph.a(locale1, locale3);
          locald2 = this.val$segmentConstraintGraph.a(locale2, locale3);
          this.val$edge2MinLength.a(locald1, 0);
          this.val$edge2Weight.a(locald1, i);
          this.val$edge2MinLength.a(locald2, 0);
          this.val$edge2Weight.a(locald2, i);
          if (!bool) {
            if (m == 0) {
              return;
            }
          }
        }
        else
        {
          locale3 = this.val$segmentConstraintGraph.i();
          locald1 = this.val$segmentConstraintGraph.a(locale1, locale3);
          locald2 = this.val$segmentConstraintGraph.a(locale2, locale3);
        }
        e locale4 = this.val$segmentConstraintGraph.i();
        d locald3 = this.val$segmentConstraintGraph.a(locale1, locale4);
        d locald4 = this.val$segmentConstraintGraph.a(locale2, locale4);
        int j = (int)Math.ceil(q.this.a(locald_1, locald_2));
        if (!bool)
        {
          if (locald_1.b() == locald_2.b())
          {
            double d1 = locald_2.d() - locald_1.d();
            double d2 = locald_2.e() - locald_1.e();
            if (!bool) {
              if (locald_1.k())
              {
                if (bool) {
                  break label447;
                }
                if (d1 + d2 > 0.0D) {
                  break label394;
                }
              }
            }
            if (!bool)
            {
              if (!locald_1.k())
              {
                if (bool) {
                  break label508;
                }
                if (d1 - d2 > 0.0D)
                {
                  label394:
                  this.val$edge2MinLength.a(locald1, j);
                  this.val$edge2MinLength.a(locald2, 0);
                  this.val$edge2Weight.a(locald2, 10);
                  this.val$edge2Weight.a(locald4, i);
                  label447:
                  if (bool) {
                    break label508;
                  }
                  if (m == 0) {
                    return;
                  }
                }
              }
              this.val$edge2MinLength.a(locald2, j);
              this.val$edge2MinLength.a(locald1, 0);
              this.val$edge2Weight.a(locald1, 10);
              this.val$edge2Weight.a(locald3, i);
            }
            label508:
            if ((!bool) && (m == 0)) {
              return;
            }
          }
          if (bool) {
            break label547;
          }
        }
        label547:
        int k = this.val$segmentRep2TransformedMaxPointX.getInt(locale1) < this.val$segmentRep2TransformedMaxPointX.getInt(locale2) ? 1 : 0;
        if (!bool) {
          if (locald_1.b() != 3)
          {
            if (bool) {
              break label721;
            }
            if (locald_1.b() != 1) {
              break label711;
            }
          }
        }
        if (!bool) {
          if (k != 0)
          {
            this.val$edge2MinLength.a(locald1, j);
            this.val$edge2MinLength.a(locald2, 0);
            this.val$edge2Weight.a(locald2, 10);
            this.val$edge2Weight.a(locald4, 100);
            if (!bool) {
              if (m == 0) {
                return;
              }
            }
          }
          else
          {
            this.val$edge2MinLength.a(locald2, j);
            this.val$edge2MinLength.a(locald1, 0);
            this.val$edge2Weight.a(locald1, 10);
            this.val$edge2Weight.a(locald3, 100);
          }
        }
        if ((bool) || (m != 0))
        {
          label711:
          if (!bool) {
            if (locald_1.b() != 2) {
              label721:
              if ((!bool) && (locald_1.b() != 0)) {
                return;
              }
            }
          }
          if (!bool)
          {
            if (k == 0)
            {
              this.val$edge2MinLength.a(locald2, j);
              this.val$edge2MinLength.a(locald1, 0);
              this.val$edge2Weight.a(locald1, 10);
              this.val$edge2Weight.a(locald3, 100);
              if (bool) {
                break label845;
              }
            }
          }
          else if (m == 0) {
            return;
          }
          this.val$edge2MinLength.a(locald1, j);
          this.val$edge2MinLength.a(locald2, 0);
          this.val$edge2Weight.a(locald2, 10);
          label845:
          this.val$edge2Weight.a(locald4, 100);
        }
      }
    });
  }
  
  private double a(d_ paramd_1, d_ paramd_2)
  {
    o localo1 = this.k.c().a(paramd_1.c());
    o localo2 = this.k.c().a(paramd_2.c());
    return Math.max(localo1.c(), localo2.c());
  }
  
  class f_
    extends q.d_
  {
    private n k;
    private double l;
    private double m;
    private final boolean n;
    private double o;
    private double p;
    private Object q;
    private t r;
    private int s;
    
    f_(a.d.n paramn1, a.d.n paramn2, n paramn, Object paramObject, int paramInt)
    {
      super(paramn1.c() ? paramn1 : paramn2, paramn1.b() ? paramn1 : paramn2);
      this.s = paramInt;
      this.k = paramn;
      f localf1 = paramn.a(paramInt);
      f localf2 = paramn.a(paramInt + 1);
      if (!bool)
      {
        if (localf2.g())
        {
          this.n = false;
          this.m = localf1.e();
          this.l = localf2.e();
          if (bool) {
            break label151;
          }
          if (sb.d == 0) {}
        }
        else
        {
          this.n = true;
          this.m = localf2.e();
        }
      }
      else {
        this.l = localf1.e();
      }
      this.q = paramObject;
      label151:
      this.o = (paramn.b() ? 0.0D : n());
      this.r = m();
    }
    
    public boolean j()
    {
      return false;
    }
    
    public Object i()
    {
      return this.q;
    }
    
    public double d()
    {
      return this.l;
    }
    
    public double e()
    {
      return this.m;
    }
    
    public double f()
    {
      boolean bool = sb.e;
      if (!bool) {
        if (this.g != 3)
        {
          if (bool) {
            break label39;
          }
          if (this.g != 1) {
            break label38;
          }
        }
      }
      return this.l - this.o;
      label38:
      label39:
      return this.l + this.o;
    }
    
    public double g()
    {
      boolean bool = sb.e;
      if (!bool) {
        if (this.g != 0)
        {
          if (bool) {
            break label38;
          }
          if (this.g != 1) {
            break label37;
          }
        }
      }
      return this.m - this.o;
      label37:
      label38:
      return this.m + this.o;
    }
    
    public double h()
    {
      return this.p;
    }
    
    public void a(double paramDouble)
    {
      this.p = paramDouble;
    }
    
    private t m()
    {
      boolean bool = sb.e;
      if (!bool)
      {
        if (this.g == 3) {
          return new t(this.l - this.o, this.m, this.o, this.o);
        }
        if (bool) {}
      }
      else if (this.g == 2)
      {
        return new t(this.l, this.m, this.o, this.o);
      }
      if (this.g == 0) {
        return new t(this.l, this.m - this.o, this.o, this.o);
      }
      return new t(this.l - this.o, this.m - this.o, this.o, this.o);
    }
    
    public t a()
    {
      return this.r;
    }
    
    private double n()
    {
      boolean bool = sb.e;
      int i = sb.d;
      double d1 = this.e.h();
      double d2 = this.f.h();
      if (!bool) {}
      double d3 = q.this.i * (d1 < d2 ? d1 : d2);
      mb localmb1 = this.k.j[this.s];
      mb localmb2 = this.k.i[this.s];
      double d4;
      double d5;
      double d6;
      label177:
      label186:
      double d7;
      if (!bool) {
        if (localmb1 != null)
        {
          d4 = Math.abs(this.m - localmb1.j());
          d5 = Math.abs(this.m - localmb1.l());
          if (!bool)
          {
            if ((this.g == 3) || (this.g == 2)) {
              d3 = Math.min(d3, d5);
            }
          }
          else
          {
            d6 = d4;
            if (bool) {
              break label186;
            }
            if (i == 0) {
              break label177;
            }
          }
          d3 = Math.min(d3, d4);
          d6 = d5;
          if (!bool) {
            if (this.g != 1)
            {
              if (bool) {
                break label229;
              }
              if (this.g != 3) {
                break label228;
              }
            }
          }
          if (!bool)
          {
            d7 = Math.abs(this.l - localmb1.i());
            if (i == 0) {}
          }
          else
          {
            label228:
            label229:
            d7 = Math.abs(this.l - localmb1.k());
          }
          d3 = Math.min(d3, d7 + d6);
        }
      }
      if (localmb2 != null)
      {
        d4 = Math.abs(this.l - localmb2.i());
        d5 = Math.abs(this.l - localmb2.k());
        if (!bool)
        {
          if ((this.g == 0) || (this.g == 2)) {
            d3 = Math.min(d3, d5);
          }
        }
        else
        {
          d6 = d4;
          if (bool) {
            break label355;
          }
          if (i == 0) {
            break label346;
          }
        }
        d3 = Math.min(d3, d4);
        d6 = d5;
        label346:
        if (!bool) {
          label355:
          if (this.g != 1)
          {
            if (bool) {
              break label397;
            }
            if (this.g != 0) {
              break label396;
            }
          }
        }
        if (!bool)
        {
          d7 = Math.abs(this.m - localmb2.j());
          if (i == 0) {}
        }
        else
        {
          label396:
          label397:
          d7 = Math.abs(this.m - localmb2.l());
        }
        d3 = Math.min(d3, d7 + d6);
      }
      return d3;
    }
    
    public z o()
    {
      boolean bool = sb.e;
      int i = sb.d;
      z localz = new z();
      if (!bool) {
        if (this.p < 1.0E-006D)
        {
          localz.add(new a.d.w(this.l, this.m));
          return localz;
        }
      }
      double d1 = this.f.d().a;
      double d4 = this.e.d().b;
      if (!bool) {
        if (this.g == 2)
        {
          d2 = Math.min(this.f.d().b, this.f.e().b) + this.p;
          d3 = Math.min(this.e.d().a, this.e.e().a) + this.p;
          if (bool) {
            break label392;
          }
          if (i == 0) {
            break label388;
          }
        }
      }
      if (!bool)
      {
        if (this.g == 3)
        {
          d2 = Math.min(this.f.d().b, this.f.e().b) + this.p;
          d3 = Math.max(this.e.d().a, this.e.e().a) - this.p;
          if (bool) {
            break label392;
          }
          if (i == 0) {
            break label388;
          }
        }
        if (bool) {}
      }
      else if (this.g == 1)
      {
        d2 = Math.max(this.f.d().b, this.f.e().b) - this.p;
        d3 = Math.max(this.e.d().a, this.e.e().a) - this.p;
        if (bool) {
          break label392;
        }
        if (i == 0) {
          break label388;
        }
      }
      double d2 = Math.max(this.f.d().b, this.f.e().b) - this.p;
      double d3 = Math.min(this.e.d().a, this.e.e().a) + this.p;
      label388:
      label392:
      if (!bool)
      {
        if (this.n)
        {
          localz.add(new a.d.w(d1, d2));
          if (bool) {
            break label473;
          }
          localz.add(new a.d.w(d3, d4));
          if (i == 0) {}
        }
        else
        {
          localz.add(new a.d.w(d3, d4));
        }
      }
      else {
        localz.add(new a.d.w(d1, d2));
      }
      label473:
      return localz;
    }
  }
  
  class e_
    extends q.d_
  {
    private static final double k = 1.0D;
    private final t l;
    private final double m;
    private final a.d.w n;
    
    e_(a.d.n paramn1, a.d.n paramn2, d paramd)
    {
      super(paramn1.c() ? paramn1 : paramn2, paramn1.b() ? paramn1 : paramn2);
      if (!sb.e) {
        this.n = new a.d.w(this.f.d().a, this.e.d().b);
      }
      this.m = (paramn1.c() ? Math.abs(this.n.a - paramn1.e().a) : Math.abs(this.n.b - paramn1.e().b));
      this.l = m();
    }
    
    private t m()
    {
      boolean bool = sb.e;
      double d = this.m + 2.0D;
      if (!bool)
      {
        if (this.g == 3) {
          return new t(this.n.a - this.m - 1.0D, this.n.b - 1.0D, d, d);
        }
        if (bool) {}
      }
      else if (this.g == 2)
      {
        return new t(this.n.a - 1.0D, this.n.b - 1.0D, d, d);
      }
      if (this.g == 0) {
        return new t(this.n.a - 1.0D, this.n.b - this.m - 1.0D, d, d);
      }
      return new t(this.n.a - this.m - 1.0D, this.n.b - this.m - 1.0D, d, d);
    }
    
    public boolean j()
    {
      return true;
    }
    
    public double d()
    {
      return this.n.a();
    }
    
    public double e()
    {
      return this.n.b();
    }
    
    public t a()
    {
      return this.l;
    }
    
    public void a(double paramDouble)
    {
      throw new IllegalStateException("Segment offset is fixed!");
    }
    
    public double h()
    {
      return this.m;
    }
    
    public double f()
    {
      boolean bool = sb.e;
      if (!bool) {
        if (this.g != 3)
        {
          if (bool) {
            break label39;
          }
          if (this.g != 1) {
            break label38;
          }
        }
      }
      return d() - this.m;
      label38:
      label39:
      return d() + this.m;
    }
    
    public double g()
    {
      boolean bool = sb.e;
      if (!bool) {
        if (this.g != 0)
        {
          if (bool) {
            break label38;
          }
          if (this.g != 1) {
            break label37;
          }
        }
      }
      return e() - this.m;
      label37:
      label38:
      return e() + this.m;
    }
  }
  
  static abstract class d_
    implements p
  {
    public static final byte a = 0;
    public static final byte b = 1;
    public static final byte c = 2;
    public static final byte d = 3;
    protected final a.d.n e;
    protected final a.d.n f;
    protected final byte g;
    protected final d h;
    e i;
    e j;
    
    protected d_(d paramd, a.d.n paramn1, a.d.n paramn2)
    {
      this.h = paramd;
      this.e = paramn1;
      this.f = paramn2;
      this.g = l();
    }
    
    public byte b()
    {
      return this.g;
    }
    
    public d c()
    {
      return this.h;
    }
    
    public abstract double d();
    
    public abstract double e();
    
    public abstract double f();
    
    public abstract double g();
    
    public abstract double h();
    
    public abstract void a(double paramDouble);
    
    public Object i()
    {
      return null;
    }
    
    public abstract boolean j();
    
    public boolean k()
    {
      boolean bool = sb.e;
      if (!bool) {
        if (this.g != 1) {
          if (bool) {
            break label29;
          }
        }
      }
      label29:
      return this.g == 2;
    }
    
    private byte l()
    {
      boolean bool = sb.e;
      if (!bool) {}
      int k = Math.min(this.f.d().b, this.f.e().b) + 1.0E-006D < this.e.d().b ? 1 : 0;
      if (!bool) {}
      int m = Math.min(this.e.d().a, this.e.e().a) + 1.0E-006D < this.f.d().a ? 1 : 0;
      if (!bool) {
        if (k != 0)
        {
          if (bool) {
            break label125;
          }
          if (m == 0) {
            return 0;
          }
        }
      }
      label125:
      if (!bool) {
        if (k != 0)
        {
          if (bool) {
            break label143;
          }
          if (m != 0) {
            return 1;
          }
        }
      }
      label143:
      if (!bool) {
        if (m == 0) {
          return 2;
        }
      }
      return 3;
    }
  }
  
  class c_
  {
    private final q.f_[] a;
    
    c_(n paramn)
    {
      a.d.n[] arrayOfn = paramn.j();
      ArrayList localArrayList = new ArrayList();
      int i = 0;
      do
      {
        do
        {
          if (i >= arrayOfn.length - 1) {
            break;
          }
          a.d.n localn1 = arrayOfn[i];
          a.d.n localn2 = arrayOfn[(i + 1)];
          if (j != 0) {
            break label148;
          }
          if (localn1.c() != localn2.c())
          {
            pc localpc = paramn.a(i + 1).l();
            localArrayList.add(new q.f_(q.this, localn1, localn2, paramn, localpc, i));
          }
          i++;
        } while (j == 0);
        this.a = new q.f_[localArrayList.size()];
      } while (bool);
      i = 0;
      label148:
      do
      {
        while (j == 0)
        {
          if (i >= this.a.length) {
            break;
          }
          this.a[i] = ((q.f_)localArrayList.get(i));
          i++;
        }
      } while (bool);
    }
    
    public q.f_[] a()
    {
      return this.a;
    }
    
    public z b()
    {
      boolean bool = sb.e;
      int j = sb.d;
      z localz = new z();
      if ((bool) || (this.a != null))
      {
        if (bool) {
          break label46;
        }
        if (this.a.length >= 1) {}
      }
      else
      {
        return localz;
      }
      label46:
      do
      {
        for (int i = 0; j == 0; i++)
        {
          if (i >= this.a.length) {
            break;
          }
          if (j != 0) {
            break label86;
          }
          localz.a(this.a[i].o());
        }
      } while (bool);
      label86:
      return localz;
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.l.a.q

 * JD-Core Version:    0.7.0.1

 */